package com.soft.javase.ch03.abstracts;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/21
 */
public class Test {
    public static void main(String[] args) {

        //Shape shape = new Shape();

        //多态
        Shape shape = new Circle();
        shape.setName("圆形");
        shape.draw();

        //
        //shape.show();
        if(shape instanceof Circle){
            ((Circle)shape).show();
        }

    }
}
